package com.health.security.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.health.report.ReportForm;
import com.health.security.*;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author: zipeng Li
 * 2021/6/20  15:47
 */
@Service
public class ReportFormServiceImpl extends ServiceImpl<ReportFormMapper, ReportForm> implements ReportFormService {

    @Resource
    private ReportFormMapper reportFormMapper;

    @Override
    public ReportForm getDayRecord(Long id) {
        return reportFormMapper.getDayRecord(id);
    }

    @Override
    public Integer getDayRecords() {
        return reportFormMapper.getDayRecords().size();
    }

    @Override
    public Integer getDangerNumber() {
        return reportFormMapper.getDangerNumber().size();
    }
}
